import { Rule } from "./types";

export const Flake82020RuleList: Rule[] = [
    {
        code: "YTT101",
        name: "sys-version-slice3",
        descEn: "sys.version[:3] referenced (python3.10), use sys.version_info",
        descCn: "",
        autoFix: false,
    },
    {
        code: "YTT102",
        name: "sys-version2",
        descEn: "sys.version[2] referenced (python3.10), use sys.version_info",
        descCn: "",
        autoFix: false,
    },
    {
        code: "YTT103",
        name: "sys-version-cmp-str3",
        descEn: "sys.version compared to string (python3.10), use sys.version_info",
        descCn: "",
        autoFix: false,
    },
    {
        code: "YTT201",
        name: "sys-version-info0-eq3",
        descEn: "sys.version_info[0] == 3 referenced (python4), use >=",
        descCn: "",
        autoFix: false,
    },
    {
        code: "YTT202",
        name: "six-py3",
        descEn: "six.PY3 referenced (python4), use not six.PY2",
        descCn: "",
        autoFix: false,
    },
    {
        code: "YTT203",
        name: "sys-version-info1-cmp-int",
        descEn: "sys.version_info[1] compared to integer (python4), compare sys.version_info to tuple",
        descCn: "",
        autoFix: false,
    },
    {
        code: "YTT204",
        name: "sys-version-info-minor-cmp-int",
        descEn: "sys.version_info.minor compared to integer (python4), compare sys.version_info to tuple",
        descCn: "",
        autoFix: false,
    },
    {
        code: "YTT301",
        name: "sys-version0",
        descEn: "sys.version[0] referenced (python10), use sys.version_info",
        descCn: "",
        autoFix: false,
    },
    {
        code: "YTT302",
        name: "sys-version-cmp-str10",
        descEn: "sys.version compared to string (python10), use sys.version_info",
        descCn: "",
        autoFix: false,
    },
    {
        code: "YTT303",
        name: "sys-version-slice1",
        descEn: "sys.version[:1] referenced (python10), use sys.version_info",
        descCn: "",
        autoFix: false,
    },
];